<form id="edit-form" class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST" action="">

	<div class="form-group" id="title">
		<label class="control-label col-xs-12 col-sm-2">模板类型:</label>
		<div class="col-xs-12 col-sm-8">
			<select name="row[type]" class="form-control selectpicker" 	data-live-search="true">
				<option value="日程内容">日程内容</option>
				<option value="日程备注">日程备注</option>
				<option value="回款备注">回款备注</option>
				<option value="服务费用">服务费用</option>
				<option value="日程目的">日程目的</option>
				<option value="返厂服务费用">返厂服务费用</option>
				<option value="费用主题">费用主题</option>
				<option value="客户需求">客户需求</option>
				<option value="安装未完成原因">安装未完成原因</option>
				<option value="级别变更原因">级别变更原因</option>
				<option value="工单标题">工单标题</option>
			</select>
		</div>
	</div>

	<div class="form-group" id="contents">
		<label class="control-label col-xs-12 col-sm-2">模板列表:</label>
		<div class="col-xs-12 col-sm-8">

			<dl class="fieldlist" data-name="row[content]" data-template="testtpl">
				<dd>
					<ins>字段值</ins>
				</dd>
				<dd>
					<a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> 追加</a>
				</dd>
				<textarea name="row[content]" class="form-control hide" cols="50" rows="1"></textarea>
			</dl>

			<!--定义模板-->
			<script type="text/html" id="testtpl">
				<dd class="form-inline">
					<textarea  name="row[<%=name%>][<%=index%>][field]" placeholder="请输入模板内容"   cols="50" rows="1" class="form-control"><%=row['field']%></textarea>
					<span class="btn btn-sm btn-danger btn-remove"><i class="fa fa-times"></i></span> <span
							class="btn btn-sm btn-primary btn-dragsort"><i class="fa fa-arrows"></i></span>
				</dd>
			</script>
		</div>
	</div>


	<div class="form-group  layer-footer">
		<div class="col-xs-2"></div>
		<div class="col-xs-12 col-sm-8">
			<button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
			<button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
		</div>
	</div>
</form>
